package com.jiangtour.exception;

import com.jiangtour.enums.ResultEnum;
import lombok.Getter;

/**
 * @author Administrator
 * @Title: SiteException
 * @ProjectName site
 * @Description: TODO
 * @date 2018/12/24/02418:25
 */
@Getter
public class SiteException extends RuntimeException{
    private  Integer code;

    public  SiteException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }

    public  SiteException (Integer code,String  message){
        super(message);
        this.code=code;
    }
}
